Optimal. Leaf size=97 \[ \frac {16 (a+a \sin (c+d x))^{7/2}}{7 a^4 d}-\frac {8 (a+a \sin (c+d x))^{9/2}}{3 a^5 d}+\frac {12 (a+a \sin (c+d x))^{11/2}}{11 a^6 d}-\frac {2 (a+a \sin (c+d x))^{13/2}}{13 a^7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2746, 45}
\begin {gather*} -\frac {2 (a \sin (c+d x)+a)^{13/2}}{13 a^7 d}+\frac {12 (a \sin (c+d x)+a)^{11/2}}{11 a^6 d}-\frac {8 (a \sin (c+d x)+a)^{9/2}}{3 a^5 d}+\frac {16 (a \sin (c+d x)+a)^{7/2}}{7 a^4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2746
Rubi steps
\begin {align*} \int \frac {\cos ^7(c+d x)}{\sqrt {a+a \sin (c+d x)}} \, dx &=\frac {\text {Subst}\left (\int (a-x)^3 (a+x)^{5/2} \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {\text {Subst}\left (\int \left (8 a^3 (a+x)^{5/2}-12 a^2 (a+x)^{7/2}+6 a (a+x)^{9/2}-(a+x)^{11/2}\right ) \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {16 (a+a \sin (c+d x))^{7/2}}{7 a^4 d}-\frac {8 (a+a \sin (c+d x))^{9/2}}{3 a^5 d}+\frac {12 (a+a \sin (c+d x))^{11/2}}{11 a^6 d}-\frac {2 (a+a \sin (c+d x))^{13/2}}{13 a^7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 61, normalized size = 0.63 \begin {gather*} -\frac {2 (1+\sin (c+d x))^4 \left (-835+1421 \sin (c+d x)-945 \sin ^2(c+d x)+231 \sin ^3(c+d x)\right )}{3003 d \sqrt {a (1+\sin (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.39, size = 57, normalized size = 0.59
method | result | size |
default | \(\frac {2 \left (a +a \sin \left (d x +c \right )\right )^{\frac {7}{2}} \left (231 \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-945 \left (\cos ^{2}\left (d x +c \right )\right )-1652 \sin \left (d x +c \right )+1780\right )}{3003 a^{4} d}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 281 vs.
\(2 (81) = 162\).
time = 0.29, size = 281, normalized size = 2.90 \begin {gather*} \frac {2 \, {\left (15015 \, \sqrt {a \sin \left (d x + c\right ) + a} - \frac {3003 \, {\left (3 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}} - 10 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a + 15 \, \sqrt {a \sin \left (d x + c\right ) + a} a^{2}\right )}}{a^{2}} + \frac {143 \, {\left (35 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {9}{2}} - 180 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {7}{2}} a + 378 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{2} - 420 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{3} + 315 \, \sqrt {a \sin \left (d x + c\right ) + a} a^{4}\right )}}{a^{4}} - \frac {5 \, {\left (231 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {13}{2}} - 1638 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {11}{2}} a + 5005 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {9}{2}} a^{2} - 8580 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {7}{2}} a^{3} + 9009 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{4} - 6006 \, {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{5} + 3003 \, \sqrt {a \sin \left (d x + c\right ) + a} a^{6}\right )}}{a^{6}}\right )}}{15015 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 82, normalized size = 0.85 \begin {gather*} \frac {2 \, {\left (231 \, \cos \left (d x + c\right )^{6} + 28 \, \cos \left (d x + c\right )^{4} + 64 \, \cos \left (d x + c\right )^{2} + 4 \, {\left (63 \, \cos \left (d x + c\right )^{4} + 80 \, \cos \left (d x + c\right )^{2} + 128\right )} \sin \left (d x + c\right ) + 512\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{3003 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.06, size = 112, normalized size = 1.15 \begin {gather*} -\frac {128 \, {\left (231 \, \sqrt {2} \sqrt {a} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{13} - 819 \, \sqrt {2} \sqrt {a} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} + 1001 \, \sqrt {2} \sqrt {a} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 429 \, \sqrt {2} \sqrt {a} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7}\right )}}{3003 \, a d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\cos \left (c+d\,x\right )}^7}{\sqrt {a+a\,\sin \left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________